package com.study.system.search.service;

import com.study.system.entity.Course;
import com.study.system.entity.PageEntity;

import java.io.IOException;
import java.util.Map;

/**
 * 课程索引的操作
 */
public interface CourseIndexService {

    /**
     * 初始化课程索引
     */
    void initCourseIndex() throws IOException;

    /**
     * 课程搜索
     * @param map
     * @return
     */
    PageEntity searchCourse(Map<String,String> map) throws IOException;

    void saveCourse(Course course) throws IOException;

    void deleteCourse(Integer id) throws IOException;
}
